Fix the root output directory when cleaning examples
authorAlex Crichton <alex@alexcrichton.com>
Thu, 20 Nov 2014 04:36:26 +0000 (20:36 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 24 Nov 2014 01:48:57 +0000 (17:48 -0800)
commitd15aaa821faced38186be2b1b062e45e8c44d631
tree6dc89138163e92633f49ee51601d1d436aa3959d
parent7cbe86cd9ae9d8ee483a032238284ca191096a9e
Fix the root output directory when cleaning examples

This forgot to take into account the logic from some other locations, so I added
a helper method!

Closes #912
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/support/mod.rs
tests/test_cargo_compile.rs